package com.woniuedu.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Author：向天浩
 * @Date：2022/4/18 09:48
 * @Description :TODO
 */
@Component
public class VodUtils implements InitializingBean {

    @Value("${aliyun.vod.file.keyid}")
    private String keyId;

    @Value("${aliyun.vod.file.keysecret}")
    private String keySecret;

    /*定义公有静态常量*/
    public static String KEYID;
    public static String KEYSECRET;



    @Override
    public void afterPropertiesSet() throws Exception {
        KEYID = keyId;
        KEYSECRET = keySecret;
    }
}
